package com.playground.puzzles.collection;

import java.util.Collection;
import java.util.Iterator;


public class GenericPuzzle <E>  {
	private Collection<Collection<E>> data;
	Iterator<Collection<E>> paren = data.iterator();// this is OK.
	
	
	private class MyIterator<E> implements Iterator<E>{
		private Iterator<Collection<E>> parent; // this is not, why?
		MyIterator(){
			this.parent = data.iterator();
		}
		
		@Override
		public boolean hasNext() {
			// TODO Auto-generated method stub
			return false;
		}
		@Override
		public E next() {
			// TODO Auto-generated method stub
			return null;
		}
		@Override
		public void remove() {
			// TODO Auto-generated method stub
			
		}
	}
}
